package com.reggie.dish.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.reggie.configuration.common.Result;
import com.reggie.dish.entity.Dish;
import com.reggie.dish.entity.dtos.DishDTO;

import java.util.List;

public interface DishService extends IService<Dish> {

    void saveWithFlavor(DishDTO dishDTO);

    Result<Page> selectByPage(int page, int pageSize, String name);

    void updateWithFlavor(DishDTO dto);

    DishDTO getByIDwithFlavor(Long id);

    void deleteByIDs(List<Long> ids);

    Result<List<DishDTO>> selectByCategoryID(Dish dish);

    void stopSellDish(int status, List<Long> ids);
}
